﻿<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <title></title>
 </head>
 <body>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script> 
<script type="text/javascript">
	wx.miniProgram.getEnv(function(res) {
			if(res.miniprogram==true){
				location.href = "{:urls('add')}?type=wxapp&fid={$fid}";
			}else{
				location.href = "{:urls('add')}?type=mp&fid={$fid}";
			}
	});
</script>
 </body>
</html>